<?php
declare (strict_types = 1);

namespace app\admin\controller;

use app\BaseController;
use think\facade\Db;
use think\Request;

class Number extends BaseController
{
    /**
     * 显示资源列表
     *  编号
     * @return \think\Response
     */
    public function index()
    {
        return $this->success(Db::table('number')->select());

    }




    /**
     * 保存更新的资源
     *
     * @param  \think\Request  $request
     * @param  int  $id
     * @return \think\Response
     */
    public function update(Request $request, $id)
    {
        Db::table('number')->where('id',$id)->update($request->param());
        return $this->success();
    }


}
